<?php
//session销毁
	session_start();
   unset($_SESSION['admin']);
   unset($_SESSION['usercode']);
//  这种方法是销毁整个 Session 文件
  session_destroy();
  session_start();
?>
<!doctype html>
<html >
<head>

	<meta charset="utf-8">

	<title>登录</title>

	<link rel="stylesheet" type="text/css" href="css/login.css">
	<link rel="stylesheet" type="text/css" href="css/lrtk.css">

</head>

<body>

	<div id="login">
         <div id="formheader">
         <img id="backimage" src="images/icon.png">
            
         	<h2>图书馆勤工系统</h2>

         </div>
         <script type="text/javascript">
              function login(){
              	 $.post("../control/process_login.php",function(data,status){
                       alert("hello");

              	 });
              }
         </script>
		
		<form action="../control/process_login.php" method="POST" id="loginform">

			<fieldset>

				<p><label for="username">用户名</label></p>
				<p><input type="text" id="username"  name="username"></p> 

				<p><label for="password">密&nbsp;&nbsp;码</label></p>
				<p><input type="password" id="password" name="password"></p>
				<p><span class="STYLE6">验证码：</span> <input name="checkcode" type="text" id="checkcode" size="8" maxlength="8" />
					<img src="../control/checkcode.php?aa='+Math.random()" onclick="this.src='../control/checkcode.php?aa='+Math.random()" />
				</p>
				<p id="checkbutton">
				       <input type="radio" name="user" value="teacher" checked/>
					<span class="STYLE6">教师</span>&nbsp;&nbsp;&nbsp;
					<input type="radio" name="user" value="student" />
					<span class="STYLE6">学生</span>

			</p>

				   <p><input type="submit" id="submit"  value="登录"><a href="apply.php" id="apply"  value="申请职位">申请职位</a></p>

			</fieldset>

		</form>

	

	</div> <!-- end login -->

	<section id="h1" class="jawbone-takeover-minimulti jawbone-hero">
		<i class="jawbone-hero-image" data-hero-image-fixed="true" data-hero-image-fade="true" data-hero-min-opacity=".3" style="opacity: 1.05;">
		</i>
	</section>

</body>	
</html>